<?php 
$url_userwu = $this->url(array('module'=>'userWu','controller'=>'user','action'=>'index',));
$chg_pwd=$this->url(array('module'=>'userWu',
                              'controller'=>'user',
                              'action'=>'change-password',
                              'id'=>$this->user_id,
						));
$tr = Application_Form_FrmLanguages::getCurrentlanguage();
$rowbranch=$this->branchname;
?>
<title><?php echo $tr->translate("MENU_RSVACL_USER_EDIT_USER");?></title>
<?php $form=$this->form;?>
<style>
fieldset.fifthy {	
	border-right: 0px;
	width: 50%;	
}
table.user td{
	vertical-align: top;
	padding-left: 5px;	   
}
</style>       
<script language="javascript">
      var temp=-1;
   
	function validateUser(field)
	{
		if(temp==1) return '* User type already exist!';
		else temp==-1;
	}
</script>
<div ID="bg-form">
<form id="frm" action="<?php echo $form->getAction(); ?>" method="post" enctype="multipart/form-data" >	
	<div class="view-table">
		 <div class="row"  style=" width:100%; margin:0 auto" >
            <h2 style=" color: #38A3D6; border-bottom: 5px solid #38A3D6; padding: 12px 0px; margin: -16px 0px 15px 0px;">Edit Group Type</h2>
         </div>  
        <div class="row" style=" width:100%; margin:0 auto">
			<table border="0" cellpadding="5" width="100%" style="margin:0 auto; font-size: 15px;">
				<tr class="height">
					<td style="margin-left: 150px"><?php echo $tr->translate('GENDER_TITLE');?></td>
					<td><?php echo $form->getElement('title');?></td>
				</tr>
				<tr class="height">
					<td><?php echo $tr->translate('FULL_NAME');?></td>
					<td><?php echo $form->getElement('fullname');?></td>
				</tr>
				<tr class="height">
					<td><?php echo $tr->translate('USER_NAME');?></td>
					<?php echo $form->getElement('user_id');?>
					<td><?php echo $form->getElement('username');?></td>
				</tr>
				<tr class="height">
					<td><?php echo $tr->translate('EMAIL');?></td>
					<td><?php echo $form->getElement('email');?></td>
				</tr>			
				<tr class="height">
					<td><?php echo $tr->translate('USER_TYPE');?></td>
					<td><?php echo $form->getElement('user_type_id');?></td>
				</tr>
				<tr>
					<td><?php echo "Phone Number" ?></td>
					<td><?php echo $form->getElement('phone');?></td>
				</tr>
				<tr style="height: 40px;">
					<td><?php echo "Photo User"?></td>
						<?php echo $form->getElement('old_photo');?>
					<td><?php echo $form->getElement('photo');?></td>
				</tr>
				<tr class="height">
					<td></td>
					<td><div class="access" style="float: left; color: blue;"> <span><a href="<?php echo $chg_pwd; ?>" style="color: blue;"><?php echo $tr->translate('CHANGE_PSW');?></a></span></div></td>				
				</tr>
			</table>
				<div class="panel-buttom" style="float: right; margin: 15px 0px 4px 0px;">
			    <button name="update" class="btn btn-small btn-primary" type="submit" value="update">
			         <b><i class="icon-check"></i></b> &nbsp;
			        <?php echo $tr->translate('UPDATE');?>
			    </button>
           	
				<button name="cancel" value="cancel" class="btn btn-small btn-warning">
				<b><i class="fa fa-times"></i></b> &nbsp; Cancel					 
				</button>
				</div>
	</div>
</form>
</div>